import requests
import re

url = "http://localhost:8888/shopxo/"
response = requests.get(url)
html_content = response.text
# print(html_content)

# match和search
# regular = '<b class="goods-price" data-original-price="356.00">(.*?)</b>'
# content = re.search(regular,html_content,re.S)
# print(content)
# print(content.group(1))

# findall()匹配所有
regular = '<dl class="dl-sort">(.*?)</dl>'
goods_items = re.findall(regular, html_content, re.S)
print(goods_items)
